﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Data;

namespace SGBDSecurity
{
    public partial class StartForm : Form
    {
        User aUser;

        public StartForm(User iUser)
        {
            aUser = iUser;   
            InitializeComponent();
            this.lNome.Text = iUser.Login;
            this.lNivel.Text = iUser.Classe + "";
        }

        private void btnAlterTable_Click(object sender, EventArgs e)
        {
            AlterTable formAlterTable = new AlterTable(aUser);
            formAlterTable.Visible = true;
        }

        private void btnViewTable_Click(object sender, EventArgs e)
        {
            ViewTable view = new ViewTable(this.aUser);
            view.Visible = true;
        }
    }
}
